﻿//ICommissionProfile.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Algo.Commissions
{
	using StockSharp.BusinessEntities;

	/// <summary>
	/// Тарифный план (биржевой, брокерский или агентский).
	/// </summary>
	public interface ICommissionProfile
	{
		/// <summary>
		/// Получить комиссию.
		/// </summary>
		/// <param name="trade">Сделка.</param>
		/// <returns>Комиссия.</returns>
		decimal GetCommission(MyTrade trade);

		/// <summary>
		/// Получить комиссию.
		/// </summary>
		/// <param name="order">Заявка.</param>
		/// <returns>Комиссия.</returns>
		decimal GetCommission(Order order);
	}
}